package com.alawn.framework.core.web.faces.annotation;

public enum MessageType {
	OPERATION("operationSuccess", "operationFailed"), SAVE("saveSuccess", "saveFailed"),
	DELETE("deleteSuccess", "deleteFailed"), DOWNLOAD("downloadSuccess", "downloadFailed"),
	UPLOAD("uploadSuccess", "uploadFailed");

	private final String successCode;
	private final String failedCode;

	private MessageType(String successCode, String failedCode) {
		this.successCode = successCode;
		this.failedCode = failedCode;
	}

	public String getSuccessCode() {
		return this.successCode;
	}

	public String getFailedCode() {
		return this.failedCode;
	}
}